<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\server\BasicDataServer;

/* @var $this yii\web\View */
/* @var $model common\models\AdminModel */

?>
<div class="admin-model-create">


    <?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>

    <?= $form->field($model, 'username')->textInput(['autofocus' => true])->label('用户名') ?>
    <?= $form->field($model, 'nickname')->textInput()->label('姓名') ?>

    <?= $form->field($model, 'password')->passwordInput()->label('密码')?>
	
	<?= $form->field($model, 'role_id')->dropDownList(BasicDataServer::instance()->getRoleToOptions()) ?>
			
	
    <div class="form-group">
        <?= Html::submitButton('添加', ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
